package com.dmyang.vo;

/**
 * 前台聊天的用户信息
 * Created by brss on 2018/5/12.
 */
public class UserVo {
    private String name;
    private String id;
    private String type;//kefu
    private String avatar;//头像

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserVo userVo = (UserVo) o;

        if (name != null ? !name.equals(userVo.name) : userVo.name != null) return false;
        if (id != null ? !id.equals(userVo.id) : userVo.id != null) return false;
        if (type != null ? !type.equals(userVo.type) : userVo.type != null) return false;
        return avatar != null ? avatar.equals(userVo.avatar) : userVo.avatar == null;
    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (id != null ? id.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (avatar != null ? avatar.hashCode() : 0);
        return result;
    }
}
